<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // getSalary(12000, 2000)
        // getSalary(15000, 3000)
        // getSalary(15000, 4000)


        function makeSalary (base) {
            return function (performance) {
                return base + performance
            }
        }

        let salarylevel1 = makeSalary(12000)
        let salarylevel2 = makeSalary(15000)

        console.log(salarylevel1(2000))
        console.log(salarylevel2(3000))
        console.log(salarylevel2(4000))
    </script>
</body>
</html>